-
Notifications
You must be signed in to change notification settings - Fork 11
Update setup #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update setup #43
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
dff7bee
Add github actions
CaselIT 186b3b9
Fix workflow
CaselIT fc26ce7
Move setup information to setup.cfg
CaselIT 29ea35d
Use pep517 to build
CaselIT 57a4dad
Merge branch 'master' into update_setup
vytas7 f15ecd4
Merge branch 'master' into update_setup
CaselIT f38f329
chore: review feedback
CaselIT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -12,6 +12,7 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
|
This file contains hidden or 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 +1 @@ | ||
include README.rst LICENSE mimeparse_test.py testdata.json | ||
include README.rst LICENSE mimeparse_test.py testdata.json pyproject.toml |
This file contains hidden or 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,6 @@ | ||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=47", | ||
"wheel>=0.34", | ||
] |
This file contains hidden or 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,40 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
[metadata] | ||
name = python-mimeparse | ||
version = attr: mimeparse.__version__ | ||
description = A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges. | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
url = https://github.com/falconry/python-mimeparse | ||
author = DB Tsai | ||
author_email = [email protected] | ||
maintainer = Falcon team | ||
maintainer_email = [email protected] | ||
license = MIT | ||
license_file = LICENSE | ||
classifiers = | ||
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.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Developers | ||
Topic :: Internet :: WWW/HTTP | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
keywords = | ||
mime-type | ||
project_urls = | ||
Issue Tracker=https://github.com/falconry/python-mimeparse | ||
|
||
[options] | ||
python_requires = >=3.5 | ||
py_modules = mimeparse | ||
install_requires = | ||
tests_require = | ||
pytest |
This file contains hidden or 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,62 +1,3 @@ | ||
#!/usr/bin/env python | ||
|
||
import codecs | ||
import os | ||
import re | ||
|
||
from setuptools import setup | ||
|
||
|
||
def get_version(filename): | ||
""" | ||
Return package version as listed in `__version__` in 'filename'. | ||
""" | ||
with open(filename) as fp: | ||
contents = fp.read() | ||
return re.search("__version__ = ['\"]([^'\"]+)['\"]", contents).group(1) | ||
|
||
|
||
version = get_version('mimeparse.py') | ||
if not version: | ||
raise RuntimeError('Cannot find version information') | ||
|
||
|
||
def read(fname): | ||
path = os.path.join(os.path.dirname(__file__), fname) | ||
with codecs.open(path, encoding='utf-8') as fp: | ||
return fp.read() | ||
|
||
|
||
setup( | ||
name="python-mimeparse", | ||
py_modules=["mimeparse"], | ||
version=version, | ||
description=("A module provides basic functions for parsing mime-type " | ||
"names and matching them against a list of media-ranges."), | ||
author="DB Tsai", | ||
license="MIT", | ||
author_email="[email protected]", | ||
url="https://github.com/dbtsai/python-mimeparse", | ||
download_url=("https://github.com/dbtsai/python-mimeparse/tarball/" + version), | ||
keywords=["mime-type"], | ||
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', | ||
classifiers=[ | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
long_description=read('README.rst') | ||
) | ||
setup() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.