Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Building: Add setup.cfg + setup.py for backwards compat
Browse files Browse the repository at this point in the history
Unfortunately we can't use pyproject.toml for everything just yet
  • Loading branch information
jwijenbergh committed May 29, 2024
1 parent d58a677 commit f2f24ed
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 61 deletions.
61 changes: 0 additions & 61 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,67 +2,6 @@
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "eduvpn_client"
version = "4.2.99.1"
description = "eduVPN client for Linux"
authors = [
{name = "Jeroen Wijenbergh", email = "[email protected]"},
]
dependencies = [
"eduvpn_common==1.99.2",
"pygobject",
]
requires-python = ">=3.6"
readme = "README.md"
license = {text = "GPL3"}
keywords = ["vpn openvpn networking security"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: X11 Applications",
"Environment :: X11 Applications :: GTK",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: System :: Networking",
"Topic :: System :: Operating System Kernels :: Linux",
]

[project.urls]
Homepage = "https://github.com/eduvpn/python-eduvpn-client"

[project.optional-dependencies]
lint = [
"ruff",
]
mypy = [
"mypy",
"pygobject-stubs",
"types-setuptools",
]
test = [
"pytest",
]

[project.scripts]
eduvpn-cli = "eduvpn.cli:eduvpn"
letsconnect-cli = "eduvpn.cli:letsconnect"

[project.gui-scripts]
eduvpn-gui = "eduvpn.ui.__main__:eduvpn"
letsconnect-gui = "eduvpn.ui.__main__:letsconnect"

[tool.setuptools.packages.find]
include = ["eduvpn*"]

[tool.ruff]
line-length = 120

Expand Down
53 changes: 53 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[metadata]
name = eduvpn_client
version = 4.2.99.1
author = Jeroen Wijenbergh
author_email = [email protected]
description = eduVPN client for Linux
long_description = file: README.md
url = https://github.com/eduvpn/python-eduvpn-client
license = GPL3+
license-files = LICENSE
classifiers =
Development Status :: 5 - Production/Stable
Environment :: X11 Applications
Environment :: X11 Applications :: GTK
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Operating System :: POSIX
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: System :: Networking
Topic :: System :: Operating System Kernels :: Linux

[options]
packages = eduvpn
python_requires = >= 3.6
install_requires =
eduvpn_common==1.99.2
pygobject

[options.package_data]
eduvpn = data

[options.entry_points]
console_scripts =
eduvpn-cli = eduvpn.cli:eduvpn
letsconnect-cli = eduvpn.cli:letsconnect
gui_scripts =
eduvpn-gui = eduvpn.ui.__main__:eduvpn
letsconnect-gui = eduvpn.ui.__main__:letsconnect

[options.extras_require]
lint = ruff
mypy =
mypy
pygobject-stubs
types-setuptools
test = pytest
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from setuptools import setup

setup()

0 comments on commit f2f24ed

Please sign in to comment.