-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename package to randvec, polish setup.py and README, install pytest…
… in github action, add Makefile
- Loading branch information
1 parent
777ebd4
commit 52b1aac
Showing
13 changed files
with
220 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
exclude visualise.py | ||
exclude setup.cfg | ||
exclude Makefile | ||
exclude publish.sh | ||
exclude pyproject.toml_bck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# clean-up | ||
clean: | ||
rm -rfv build dist randvec.egg-info \_\_pycache\_\_ | ||
|
||
# clean-up cache (TODO: does not work yet) | ||
clean-pycache: | ||
find . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf | ||
|
||
upgrade: | ||
# Make sure you have the latest version of PyPA’s build installed | ||
python -m pip install --user --upgrade setuptools wheel | ||
python -m pip install --upgrade build | ||
python -m pip install --upgrade twine | ||
|
||
# source distribution | ||
build: | ||
python -m build | ||
|
||
# upload to TestPyPi (see ~/.pypirc for token) | ||
testpypi-upload: | ||
python -m twine upload --repository testpypi dist/* | ||
|
||
testpypi-web: | ||
open https://test.pypi.org/project/randvec | ||
|
||
# install TestPyPi version | ||
testpypi-install: | ||
python -m pip install --index-url https://test.pypi.org/simple/ --no-deps randvec | ||
|
||
# upload to PyPi (see ~/.pypirc for token) | ||
pypi-upload: | ||
python -m twine upload dist/* | ||
|
||
pypi-web: | ||
open https://pypi.org/project/randvec | ||
|
||
# install PyPi version | ||
pypi-install: | ||
python -m pip install randvec | ||
|
||
install-local: | ||
pip install --editable . | ||
|
||
test: | ||
pytest -v | ||
|
||
flake8: | ||
flake8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "randvec" | ||
version = "1.0.0" | ||
authors = [ | ||
{ name="Jakob Bossek", email="j.bossek@gmail.com" }, | ||
] | ||
description = "Generate random and uniform vectors whose components sum up to one" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"License :: OSI Approved :: MIT License", | ||
"Development Status :: 5 - Production/Stable", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/jakobbossek/randvec" | ||
"Bug Tracker" = "https://github.com/jakobbossek/randvec/issues" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "1.0.1" |
Oops, something went wrong.