This repository was archived by the owner on Mar 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
50 lines (41 loc) · 1.95 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from setuptools import setup
"""
pip install twine
pip install build
CREATING RELEASES-------------------------------------------------------------------------------------------------------
- Update README.md version number
- Update setup.cfg version number
- Update goopylib/__init__.py __version__ variable
- Run setup_extensions.py and build goopylib .pyd C extensions
- Test all Example python files, run goopylib_tests.py and test functions on Windows
- Run goopylib_tests.py countlines() function and update README.md with line count
- Push to GitHub, pull from MacOS computer
- Run setup_extensions.py and build goopylib .so C extensions
- Test all Example python files, run goopylib_tests.py and test functions on MacOS
- Push files to GitHub
- Create GitHub Release
- Update download_url in setup.cfg
- Build goopylib Release
- Upload goopylib Release on TestPyPi
- Install and check from TestPyPi
- Upload goopylib Release on PyPi
- Test goopylib installation on Windows
- Test goopylib installation on MacOS
To create source distribution:
1. python -m build --sdist
2. python setup.py sdist
To create (platform) wheel:
1. python -m build --wheel
2. python setup.py bdist_wheel
To create release (wheel and source distribution):
1. python -m build
2. python setup.py sdist bdist_wheel
To check release: twine check dist/*
To upload test release: twine upload --repository testpypi dist/*
To install test release: pip install -i https://test.pypi.org/simple/ goopylib==version
To upload release: twine upload dist/*
To install release: pip install goopylib==version
Username: BhavyeMathur
"""
setup(package_dir={':maths': 'goopylib/maths', ":objects": 'goopylib/objects', ":applications": 'goopylib/applications',
":sound": 'goopylib/sound', ":physics": 'goopylib/physics'})