diff --git a/.gitignore b/.gitignore index ac7c707..c8d1687 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ __pycache__ -protocol.egg-info +build +*.egg-info diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b89a55e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,26 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "protocolplus" +version = "0.2" +authors = [ + { name="Luis MartinGarcia", email="luis@luismg.com" }, + { name="Tom Pusateri", email="pusateri@bangj.com" }, +] +description = "ASCII and Unicode Header Generator for Network Protocols" +readme = "README.md" +requires-python = ">=3.7" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "Operating System :: OS Independent", +] + +[project.scripts] +protocolplus = "protocolplus:main" + +[project.urls] +"Homepage" = "https://github.com/pusateri/protocolplus" +"Bug Tracker" = "https://github.com/pusateri/protocolplus/issues" diff --git a/setup.py b/setup.py deleted file mode 100755 index 89e4eda..0000000 --- a/setup.py +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/python -################################################################################ -# ____ _ _ # -# | _ \ _ __ ___ | |_ ___ ___ ___ | | # -# | |_) | '__/ _ \| __/ _ \ / __/ _ \| | # -# | __/| | | (_) | || (_) | (_| (_) | | # -# |_| |_| \___/ \__\___/ \___\___/|_| # -# # -# == ASCII and Unicode Header Generator for Network Protocols == # -# # -################################################################################ -# # -# Written by: # -# # -# Luis MartinGarcia. # -# -> E-Mail: luis.mgarc@gmail.com # -# -> WWWW: http://www.luismg.com # -# -> GitHub: https://github.com/luismartingarcia # -# # -################################################################################ -# # -# This file is part of Protocol. # -# # -# Copyright (C) 2014 Luis MartinGarcia (luis.mgarc@gmail.com) # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # -# Please check file LICENSE.txt for the complete version of the license, # -# as this disclaimer does not contain the full information. Also, note # -# that although Protocol is licensed under the GNU GPL v3 license, it may # -# be possible to obtain copies of it under different, less restrictive, # -# alternative licenses. Requests will be studied on a case by case basis. # -# If you wish to obtain Protocol under a different license, please contact # -# the email address mentioned above. # -# # -################################################################################ -# # -# Description: # -# # -# This is the installer script for Protocol. This can be run from the # -# command-line as follows: # -# # -# sudo ./setup.py install # -# # -################################################################################ - -from distutils.core import setup - -setup( - name='protocolplus', - version='0.2', - scripts=['protocolplus'], - py_modules=[] -) diff --git a/constants.py b/src/constants.py similarity index 100% rename from constants.py rename to src/constants.py diff --git a/protocolplus b/src/protocolplus.py similarity index 100% rename from protocolplus rename to src/protocolplus.py diff --git a/specs.py b/src/specs.py similarity index 100% rename from specs.py rename to src/specs.py diff --git a/test.py b/tests/test.py similarity index 100% rename from test.py rename to tests/test.py