-
Notifications
You must be signed in to change notification settings - Fork 1
Replace versioneer with setuptools-scm. #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
|
@@ -13,3 +13,7 @@ __pycache__ | |
*.egg-info | ||
|
||
.pytask.sqlite3 | ||
|
||
build | ||
dist | ||
src/pytask_stata/_version.py |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,6 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"] | ||
|
||
|
||
[tool.setuptools_scm] | ||
write_to = "src/pytask_stata/_version.py" |
This file contains hidden or 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,7 +1,47 @@ | ||
[versioneer] | ||
VCS = git | ||
style = pep440 | ||
versionfile_source = src/pytask_stata/_version.py | ||
versionfile_build = pytask_stata/_version.py | ||
tag_prefix = v | ||
parentdir_prefix = pytask-stata- | ||
[metadata] | ||
name = pytask_stata | ||
description = Execute do-files with Stata and pytask. | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
url = https://github.com/pytask-dev/pytask-stata | ||
author = Tobias Raabe | ||
author_email = [email protected] | ||
license = MIT | ||
license_file = LICENSE | ||
platforms = any | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
project_urls = | ||
Documentation = https://github.com/pytask-dev/pytask-stata | ||
Github = https://github.com/pytask-dev/pytask-stata | ||
Tracker = https://github.com/pytask-dev/pytask-stata/issues | ||
Changelog = https://github.com/pytask-dev/pytask-stata/blob/main/CHANGES.rst | ||
|
||
[options] | ||
packages = find: | ||
install_requires = | ||
click | ||
pytask>=0.0.9 | ||
python_requires = >=3.6 | ||
include_package_data = True | ||
package_dir = =src | ||
zip_safe = False | ||
|
||
[options.packages.find] | ||
where = src | ||
|
||
[options.entry_points] | ||
pytask = | ||
pytask_stata = pytask_stata.plugin | ||
|
||
[check-manifest] | ||
ignore = | ||
src/pytask_stata/_version.py |
This file contains hidden or 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,49 +1,5 @@ | ||
from pathlib import Path | ||
|
||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
import versioneer | ||
|
||
|
||
README = Path("README.rst").read_text() | ||
|
||
PROJECT_URLS = { | ||
"Documentation": "https://github.com/pytask-dev/pytask-stata", | ||
"Github": "https://github.com/pytask-dev/pytask-stata", | ||
"Tracker": "https://github.com/pytask-dev/pytask-stata/issues", | ||
"Changelog": "https://github.com/pytask-dev/pytask-stata/blob/main/CHANGES.rst", | ||
} | ||
|
||
|
||
setup( | ||
name="pytask-stata", | ||
version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass(), | ||
description="Execute do-files with Stata and pytask.", | ||
long_description=README, | ||
long_description_content_type="text/x-rst", | ||
author="Tobias Raabe", | ||
author_email="[email protected]", | ||
url=PROJECT_URLS["Github"], | ||
project_urls=PROJECT_URLS, | ||
python_requires=">=3.6", | ||
license="MIT", | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
], | ||
install_requires=["click", "pytask >= 0.0.9"], | ||
platforms="any", | ||
packages=find_packages(where="src"), | ||
package_dir={"": "src"}, | ||
entry_points={"pytask": ["pytask_stata = pytask_stata.plugin"]}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
) | ||
if __name__ == "__main__": | ||
setup() |
This file contains hidden or 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,4 +1,9 @@ | ||
from ._version import get_versions | ||
try: | ||
from ._version import version as __version__ | ||
except ImportError: | ||
# broken installation, we don't even try unknown only works because we do poor mans | ||
# version compare | ||
__version__ = "unknown" | ||
|
||
__version__ = get_versions()["version"] | ||
del get_versions | ||
|
||
__all__ = ["__version__"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.