first draft for pip
parent
811259ee67
commit
552c03c0c6
|
@ -1,3 +1,7 @@
|
|||
.venv/
|
||||
modules/__pycache__/
|
||||
runs/
|
||||
*.swp
|
||||
build/
|
||||
dist/
|
||||
karoo_gp_kstaats.egg-info/
|
||||
|
|
|
@ -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,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',
|
||||
)
|
Loading…
Reference in New Issue