Skip to content

Commit 0147564

Browse files
committed
remove gmpy2 dependency, add Dockerfile for testing
1 parent 9097e84 commit 0147564

File tree

6 files changed

+31
-9
lines changed

6 files changed

+31
-9
lines changed

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
__pycache__/
2+
*.pyc
3+
db.sqlite3
4+
.env
5+
.envrc
6+
env
7+
venv
8+
.pytest_cache/
9+
.DS_Store
10+
.dockerignore

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM python:3.9.2-slim-buster
2+
3+
WORKDIR /usr/src/app
4+
5+
ENV PYTHONDONTWRITEBYTECODE 1
6+
ENV PYTHONUNBUFFERED 1
7+
8+
RUN apt-get update && apt-get clean
9+
10+
RUN pip install --upgrade pip
11+
RUN pip install mod-nest-exp

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ An algorithm that computes modular nested exponentiation efficiently.
1616
<td><img src='https://img.shields.io/pypi/implementation/mod-nest-exp.svg'></td>
1717
</tr>
1818
<tr>
19-
<td>Status</td>
20-
<td><img src='https://img.shields.io/pypi/status/mod-nest-exp.svg'></td>
2119
<td>Supported versions</td>
2220
<td><img src='https://img.shields.io/pypi/pyversions/mod-nest-exp.svg'></td>
23-
</tr>
24-
<tr>
2521
<td>Downloads</td>
2622
<td><img src='https://img.shields.io/pypi/dm/mod-nest-exp.svg'></td>
2723
</tr>

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: '3.9'
2+
3+
services:
4+
test-env:
5+
build:
6+
context: .
7+
container_name: test-env

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
[metadata]
22
name = mod-nest-exp
3-
version = 1.0.5
3+
version = 1.0.6
44
author = Aviv Brook
55
author_email = avbrook@ucsc.edu
66
description = An algorithm that computes modular nested exponentiation efficiently
77
long_description = file: README.md
88
long_description_content_type = text/markdown
99
url = https://github.com/avivbrook/modular-nested-exponentiation
1010
classifiers =
11-
Programming Language :: Python :: 3
1211
Programming Language :: Python :: 3.6
1312
Programming Language :: Python :: 3.9
1413
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@
55

66
setuptools.setup(
77
name='mod-nest-exp',
8-
version='1.0.5',
8+
version='1.0.6',
99
author='Aviv Brook',
1010
author_email='avbrook@ucsc.edu',
1111
description='An algorithm that computes modular nested exponentiation efficiently',
1212
long_description=long_description,
1313
long_description_content_type='text/markdown',
1414
url='https://github.com/avivbrook/modular-nested-exponentiation',
1515
classifiers=[
16-
'Programming Language :: Python :: 3',
1716
'Programming Language :: Python :: 3.6',
1817
'Programming Language :: Python :: 3.9',
1918
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
2019
'Topic :: Scientific/Engineering :: Mathematics',
2120
'Operating System :: OS Independent'
2221
],
2322
package_dir={'': 'src'},
24-
install_requires=['gmpy2==2.0.8', 'sympy==1.7.1'],
23+
install_requires=['sympy'],
2524
packages=setuptools.find_packages(where='src'),
2625
python_requires='>=3.6'
2726
)

0 commit comments

Comments
 (0)