Browse Source

use a setup.cfg file for configuring the project

master
parent
commit
63b5e7622d
4 changed files with 36 additions and 40 deletions
  1. +0
    -0
      LICENSE.txt
  2. +33
    -0
      setup.cfg
  3. +1
    -40
      setup.py
  4. +2
    -0
      src/kfpga/__init__.py

LICENSE.EN.txt → LICENSE.txt View File


+ 33
- 0
setup.cfg View File

@ -0,0 +1,33 @@
[metadata]
name = kfpga
version = attr: kfpga.__version__
url = https://git.slaanesh.org/kfpga/kfpga
author = Jonathan Tremesaygues
author_email = jonathan.tremesaygues@slaanesh.org
classifiers =
Programming Language :: Python :: 3
License :: CeCILL-B Free Software License Agreement (CECILL-B)
Operating System :: OS Independent
license = CECILL-B
license_files = LICENSE.txt
description = An open source FPGA architecture
long_description = file: README.md
long_description_content_type = text/markdown
keywords = fpga, kfpga
[options]
instals_requires =
Jinja2
packages = find:
package_dir =
= src
[options.entry_points]
console_scripts =
kfpga-create-core = kfpga.commands:command_create_core
kfpga-generate-rtl = kfpga.commands:command_generate_rtl
kfpga-generate-techlib = kfpga.commands:command_generate_techlib
kfpga-synthesize = kfpga.commands:command_synthesize
[options.packages.find]
where = src

+ 1
- 40
setup.py View File

@ -30,45 +30,6 @@
#
# The fact that you are presently reading this means that you have had
# knowledge of the CeCILL-B license and that you accept its terms.
import os.path
import setuptools
BASE_DIR = os.path.dirname(__file__)
with open(os.path.join(BASE_DIR, "README.md"), "r") as fh:
long_description = fh.read()
setuptools.setup(
# Package infos
name="kfpga",
version="0.0.2",
url="https://git.slaanesh.org/kfpga/kfpga",
description="An open source FPGA architecture",
long_description=long_description,
long_description_content_type="text/markdown",
license="CECILL-B",
author="Jonathan Tremesaygues",
author_email="jonathan.tremesaygues@slaanesh.org",
# Package content
package_dir={"": os.path.join(BASE_DIR, "src")},
packages=setuptools.find_packages(os.path.join(BASE_DIR, "src")),
# Entry points
entry_points={
"console_scripts": [
"kfpga-create-core=kfpga.commands:command_create_core",
"kfpga-generate-rtl=kfpga.commands:command_generate_rtl",
"kfpga-generate-techlib=kfpga.commands:command_generate_techlib",
"kfpga-synthesize=kfpga.commands:command_synthesize",
]
},
# Requirements
python_requires="~=3.5",
install_requires=["Jinja2"],
# Other stuff
classifiers=[
"Programming Language :: Python :: 3",
"License :: CeCILL-B Free Software License Agreement (CECILL-B)",
"Operating System :: OS Independent",
],
keywords="fpga",
)
setuptools.setup()

+ 2
- 0
src/kfpga/__init__.py View File

@ -30,3 +30,5 @@
#
# The fact that you are presently reading this means that you have had
# knowledge of the CeCILL-B license and that you accept its terms
__version__ = "0.0.2"

Loading…
Cancel
Save