-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9422da
commit 4774f0a
Showing
4 changed files
with
49 additions
and
57 deletions.
There are no files selected for viewing
Empty file.
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,11 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta:__legacy__" | ||
|
||
[project] | ||
dependencies = [ | ||
"pyDataverse==0.3.1", | ||
"pytest-selenium==2.0.1", | ||
"typer==0.3.2", | ||
'pydantic==1.8.2,extras=["dotenv"]' | ||
] |
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 |
---|---|---|
@@ -1,59 +1,5 @@ | ||
import re | ||
|
||
#!/usr/bin/env python | ||
import setuptools | ||
|
||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
|
||
def find_version(*file_paths): | ||
"""Find package version from file.""" | ||
with open("src/dvtests/__init__.py", "r", encoding="utf-8") as fh: | ||
version_file = fh.read() | ||
version_match = re.search( | ||
r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M, | ||
) | ||
if version_match: | ||
return version_match.group(1) | ||
|
||
raise RuntimeError("Unable to find version string.") | ||
|
||
|
||
setuptools.setup( | ||
version=find_version("src", "dataverse_tests", "__init__.py"), | ||
author="Stefan Kasberger", | ||
author_email="mail@stefankasberger.at", | ||
description="Dataverse tests", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/gdcc/dataverse_tests", | ||
project_urls={ | ||
"Issue Tracker": "https://github.com/gdcc/dataverse_tests/issues", | ||
"Changelog": "https://github.com/gdcc/dataverse_tests/CHANGELOG.rst", | ||
"Source": "https://github.com/gdcc/dataverse_tests/", | ||
}, | ||
classifiers=[ | ||
# How mature is this project? Common values are | ||
# 2 - Pre-Alpha | ||
# 3 - Alpha | ||
# 4 - Beta | ||
# 5 - Production/Stable | ||
"Development Status :: 3 - Alpha", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Natural Language :: English", | ||
], | ||
package_dir={"": "src"}, | ||
packages=setuptools.find_packages(where="src"), | ||
python_requires=">=3.6", | ||
keywords=["dataverse", "testing", "selenium", "pyDataverse"], | ||
) | ||
if __name__ == "__main__": | ||
setuptools.setup() |