first draft for pip

master
server 2020-02-22 11:51:53 -07:00
parent 811259ee67
commit 552c03c0c6
4 changed files with 45 additions and 0 deletions

4
.gitignore vendored
View File

@ -1,3 +1,7 @@
.venv/
modules/__pycache__/
runs/
*.swp
build/
dist/
karoo_gp_kstaats.egg-info/

20
README-pip.md 100644
View File

@ -0,0 +1,20 @@
# pip archive creation
HOWTO create and upload an archive to PyPI (pip).
```
# Install dependencies
python3 -m pip install --user --upgrade setuptools wheel twine
# Create Archive
python3 setup.py sdist bdist_wheel
# Upload to Test Archive
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# Check Test Archive
https://test.pypi.org/project/karoo_gp-jebba
# Install Test Archive
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps karoo_gp-jebba
# Upload to Main Archive
python3 -m twine upload dist/*
# Install Main Archive
python3 -m pip install karoo_gp-jebba
```

0
__init__.py 100644
View File

21
setup.py 100644
View File

@ -0,0 +1,21 @@
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="karoo_gp-jebba",
version="2.3",
author="Kai Staats",
description="evolutionary algorithm, genetic programming suite",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/kstaats/karoo_gp",
packages={''},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)