-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '27-modernize-python-package-data-use-pyprojecttoml' int…
…o develop
- Loading branch information
Showing
5 changed files
with
31 additions
and
33 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 @@ | ||
include README.md | ||
include VERSION |
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,3 +1,30 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "oriented_matroids" | ||
authors = [ | ||
{name = "Aram Dermenjian", email = "[email protected]"}, | ||
] | ||
description = "Oriented matroids for sagemath" | ||
keywords=["SageMath packaging"] | ||
requires-python = ">=3.8" | ||
license = {file = "LICENSE"} | ||
# classifiers list: https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", | ||
] | ||
dependencies=["sage-package", "sphinx"] | ||
version="0.1.1" | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/thecaligarmo/oriented_matroids" | ||
"Bug Tracker" = "https://github.com/thecaligarmo/oriented_matroids/issues" |
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,16 +1,9 @@ | ||
import os | ||
import sys | ||
from setuptools import setup, find_packages | ||
from codecs import open # To open the README file with proper encoding | ||
from setuptools.command.test import test as TestCommand # for tests | ||
|
||
|
||
# Get information from separate files (README, VERSION) | ||
def readfile(filename): | ||
with open(filename, encoding='utf-8') as f: | ||
return f.read() | ||
|
||
|
||
# For the tests | ||
class SageTest(TestCommand): | ||
def run_tests(self): | ||
|
@@ -20,29 +13,7 @@ def run_tests(self): | |
|
||
|
||
setup( | ||
name="oriented_matroids", | ||
description='Oriented matroids for sagemath', | ||
version=readfile('VERSION').strip(), | ||
long_description=readfile('README.md'), | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/thecaligarmo/oriented_matroids', | ||
author='Aram Dermenjian', | ||
author_email='[email protected]', | ||
project_urls={ | ||
'Bug Tracker': 'https://github.com/thecaligarmo/oriented_matroids/issues', | ||
}, | ||
license='GPLv3+', # This should be consistent with the LICENCE file | ||
python_requires='>=3.8', | ||
# classifiers list: https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Scientific/Engineering :: Mathematics', | ||
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', | ||
], | ||
keywords="SageMath packaging", | ||
version='0.1.1', | ||
packages=find_packages(), | ||
cmdclass={'test': SageTest}, # adding a special setup command for tests | ||
setup_requires=['sage-package'], | ||
install_requires=['sage-package', 'sphinx'], | ||
) |