Skip to content

Commit

Permalink
Update pyproject to recent recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
Cali Garmo committed Mar 2, 2024
1 parent 7667449 commit cb5628c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 21 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include README.md
include VERSION
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ Change to the root directory and run:
$ sage -pip install .
```

For convenience this package contains a makefile with this and other often used commands. This file neds updating to your sage installation directory before running.
For convenience this package contains a makefile with this and other often used commands.
The make file needs updating to your sage installation directory before running.

```
$ make install
Expand Down Expand Up @@ -60,6 +61,7 @@ $ make uninstall

## Documentation
To make the documentation, you can use `make`:
The make file needs updating to your sage installation directory before running.
```
$ make doc
```
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ name = "oriented_matroids"
authors = [
{name = "Aram Dermenjian", email = "[email protected]"},
]
description = 'Oriented matroids for sagemath'
keywords="SageMath packaging"
description = "Oriented matroids for sagemath"
keywords=["SageMath packaging"]
requires-python = ">=3.8"
license='GPLv3+' # This should be consistent with the LICENCE file
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+)',
"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=['VERSION']
dependencies=["sage-package", "sphinx"]
version="0.1.1"

[project.readme]
file = "README.md"
Expand Down
11 changes: 2 additions & 9 deletions setup.py
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):
Expand All @@ -20,7 +13,7 @@ def run_tests(self):


setup(
version=readfile('VERSION').strip(),
version='0.1.1',
packages=find_packages(),
cmdclass={'test': SageTest} # adding a special setup command for tests
cmdclass={'test': SageTest}, # adding a special setup command for tests
)

0 comments on commit cb5628c

Please sign in to comment.