-
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.
Merge pull request #40 from HERA-Team/use-setuptools-scm
maint: use setuptools_scm like the rest of the hera stack
- Loading branch information
Showing
20 changed files
with
173 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
codecov: | ||
branch: master | ||
branch: main |
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,37 @@ | ||
name: Publish Python distributions to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish to PyPI | ||
runs-on: ubuntu-latest | ||
env: | ||
ENV_NAME: publish | ||
PYTHON: "3.10" | ||
steps: | ||
- uses: actions/checkout@main | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ env.PYTHON }} | ||
|
||
- name: Install build | ||
run: pip install build | ||
|
||
- name: Build a binary wheel and a source tarball | ||
run: | | ||
python -m build | ||
- name: Publish to PyPI | ||
if: startsWith(github.event.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_token }} |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ dist/* | |
*.ipynb_checkpoints* | ||
coverage.xml | ||
*.DS_Store | ||
*/_version.py |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,63 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/linsolve/_version.py" | ||
parentdir_prefix_version = "linsolve-" | ||
fallback_version = "0.0.0" | ||
|
||
[project] | ||
name = "linsolve" | ||
authors = [ | ||
{name = "HERA Team"}, | ||
] | ||
license = {file = "LICENSE"} | ||
description="high-level tools for linearizing and solving systems of equations" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
] | ||
keywords=[ | ||
"linear equations", | ||
"optimal estimation" | ||
] | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"numpy>=1.23", | ||
"scipy", | ||
] | ||
|
||
[project.urls] | ||
Repository = "https://github.com/HERA-Team/linsolve" | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest", "pytest-cov"] | ||
dev = ["pre-commit", "linsolve[test]"] | ||
|
||
[tool.black] | ||
line-length = 88 | ||
py36 = false | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
)/ | ||
''' |
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,33 @@ | ||
[metadata] | ||
name = linsolve | ||
author = HERA Team | ||
url=https://github.com/HERA-Team/linsolve | ||
license=BSD | ||
license_file=LICENSE | ||
long_description = file: README.md | ||
long_description_content_type = text/x-md | ||
description= high-level tools for linearizing and solving systems of equations | ||
classifiers= | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: BSD License | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.6 | ||
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 | ||
Topic :: Scientific/Engineering :: Mathematics | ||
keywords= | ||
linear equations | ||
optimal estimation | ||
|
||
[options] | ||
packages = find: | ||
include_package_data= True | ||
package_dir = | ||
=src | ||
install_requires= | ||
numpy>=1.23 | ||
scipy |
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,17 @@ | ||
from pathlib import Path | ||
|
||
try: | ||
from importlib.metadata import PackageNotFoundError, version | ||
except ImportError: | ||
from importlib_metadata import PackageNotFoundError, version | ||
|
||
try: | ||
from ._version import version as __version__ | ||
except ModuleNotFoundError: # pragma: no cover | ||
try: | ||
__version__ = version(__name__) | ||
except PackageNotFoundError: # pragma: no cover | ||
# package is not installed | ||
__version__ = 'unknown' | ||
|
||
from .linsolve import * |
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,4 @@ | ||
# file generated by setuptools_scm | ||
# don't change, don't track in version control | ||
__version__ = version = '1.0.1.dev8+gc98f991.d20230713' | ||
__version_tuple__ = version_tuple = (1, 0, 1, 'dev8', 'gc98f991.d20230713') |
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,17 @@ | ||
"""Version module, kept only for backwards-compatibility.""" | ||
|
||
import warnings | ||
from . import __version__ | ||
|
||
version_info = __version__ | ||
version = __version__ | ||
git_origin = __version__ | ||
git_hash = __version__ | ||
git_description = __version__ | ||
git_branch = __version__ | ||
|
||
warnings.warn("You should not rely on this module any more. Just use __version__.") | ||
|
||
|
||
if __name__ == '__main__': | ||
print(__version__) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.