-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparation for release on PyPI (#87)
* Update Python Versions (#82) * Update python minimum to 3.10 in pyproject.toml. * Add notes to README and docs to detail minimum python version as 3.10 * Update workflows to use 3.10 as minimum python version, add 3.12 as latest, and update actions to latest versions. * Fix linting issue (use strict in zip) that arises with minimum version being 3.10. * Update to explicit TypeAlias in targets, with note thqat this is deprecated in favour of in python 3.12+. * Update ready for PyPI upload. * Set version to 1.0.0 * Update License to use real name instead of GitHub username. * Update README with badges. * Fix location specifier for a local install.
- Loading branch information
1 parent
0698980
commit bdece30
Showing
4 changed files
with
17 additions
and
22 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
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ Installation Instructions | |
archeryutils is a pure python package. | ||
It can be installed using pip by executing:: | ||
|
||
python -m pip install git+https://github.com/jatkinson1000/archeryutils.git | ||
pip install archeryutils | ||
|
||
Development Installation | ||
------------------------ | ||
|
@@ -27,7 +27,7 @@ install as an editable package:: | |
|
||
git clone [email protected]:jatkinson1000/archeryutils.git | ||
cd archeryutils | ||
pip install -e . | ||
pip install -e .[test,int,docs] | ||
|
||
Testing | ||
~~~~~~~ | ||
|
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 |
---|---|---|
|
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "archeryutils" | ||
version = "0.1.1" | ||
description = "A collection of archery utilities in python" | ||
version = "1.0.0" | ||
description = "A collection of archery utilities in python." | ||
authors = [ | ||
{ name="Jack Atkinson", email="[email protected]" }, | ||
] | ||
|
@@ -14,18 +14,15 @@ license = {file = "LICENSE"} | |
requires-python = ">=3.10" | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Development Status :: 3 - Alpha", | ||
"Development Status :: 5 - Production/Stable", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Typing :: Typed', | ||
"Operating System :: OS Independent", | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS', | ||
'Operating System :: Microsoft :: Windows', | ||
# "Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
dependencies = [ | ||
"numpy>=1.20.0", | ||
|
@@ -57,15 +54,15 @@ docs = [ | |
|
||
[project.urls] | ||
"Homepage" = "https://github.com/jatkinson1000/archeryutils" | ||
"Bug Tracker" = "https://github.com/jatkinson1000/archeryutils/Issues" | ||
"Bug Tracker" = "https://github.com/jatkinson1000/archeryutils/issues" | ||
"Documentation" = "https://archeryutils.readthedocs.io/" | ||
"Repository" = "https://github.com/jatkinson1000/archeryutils" | ||
|
||
[tool.setuptools] | ||
# By default, include-package-data is true in pyproject.toml, so you do | ||
# NOT have to specify this line. | ||
include-package-data = true | ||
|
||
#[tool.setuptools.packages] | ||
#find = {} | ||
[tool.setuptools.packages.find] | ||
where = ["."] # list of folders that contain the packages (["."] by default) | ||
include = ["archeryutils", "archeryutils.*"] # package names should match these glob patterns (["*"] by default) | ||
|
@@ -75,9 +72,6 @@ namespaces = false # to disable scanning PEP 420 namespaces (true by default) | |
[tool.setuptools.package-data] | ||
archeryutils = ["*.json", "round_data_files/*.json", "classifications/*.json"] | ||
|
||
#[options.extras_require] | ||
#tests = pytest | ||
|
||
[tool.mypy] | ||
warn_unused_configs = true | ||
plugins = ["numpy.typing.mypy_plugin"] | ||
|
@@ -113,5 +107,5 @@ convention = "numpy" | |
|
||
[tool.ruff.lint.per-file-ignores] | ||
# Ignore S101 (use of assert) in tests | ||
# Ignore PLR2004 (magic values) in tests as we regularly want to compare to a numerical value | ||
# Ignore PLR2004 (magic values) in tests as we regularly compare to a numerical value | ||
"**/tests/*" = ["S101", "PLR2004"] |