-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
55 lines (48 loc) · 1.39 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import re
from os import environ
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
LONG_DESCRIPTION = fh.read()
PKG_VERSION = "0.1.0"
GIT_TAG = environ.get("GITHUB_REF", "")
TAG_VERSION = re.match(r'^refs/tags/v([0-9]+\.[0-9a-z]+\.[0-9a-z]+)$', GIT_TAG)
if TAG_VERSION:
PKG_VERSION = TAG_VERSION.group(1)
setuptools.setup(
name="doi2ietf",
version=PKG_VERSION,
author="Ribose",
author_email="[email protected]",
license='MIT',
description="Converts DOI metadata into IETF BibXML format",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/ietf-ribose/doi2ietf-py",
packages=['doi2ietf'],
project_urls={
'Documentation': 'https://github.com/ietf-ribose/doi2ietf-py',
'Source': 'https://github.com/ietf-ribose/doi2ietf-py',
'Tracker': 'https://github.com/ietf-ribose/doi2ietf-py/issues',
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
install_requires=[
'pyyaml',
'requests',
'requests-cache',
'simplejson'
],
tests_require=[
'pytest',
'xmldiff',
],
entry_points={
'console_scripts': [
'doi2ietf=doi2ietf.command_line:main',
],
},
)