-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
44 lines (39 loc) · 1.37 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
import codecs
import re
from setuptools import setup
from setuptools import find_packages
VERSION = ""
with open("commonmeta/__init__.py", "r") as fd:
VERSION = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE
).group(1)
if not VERSION:
raise RuntimeError("Cannot find version information")
with codecs.open("README.md", "r", "utf-8") as f:
readme = f.read()
long_description = "\n\n" + readme
setup(
name="commonmeta-py",
version=VERSION,
description="Library for conversions of scholarly metadata",
long_description=long_description,
author="Martin Fenner",
author_email="[email protected]",
url="https://github.com/front-matter/commonmeta-py",
license="MIT",
packages=find_packages(exclude=["test*"]),
classifiers=[
"Development Status :: 3 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)