Skip to content

Commit

Permalink
move to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo committed Dec 1, 2024
1 parent 29203ab commit 7f1b281
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "openglider"
version = "0.8.0"
description = "glider design software for FreeCAD"
readme = "README.md"
license = {file = "LICENSE"}
maintainers = [
{name = "looooo", email = "[email protected]"},
]
requires-python = ">=3.8"
dependencies = ["svgwrite", "numpy", "scipy", "ezdxf",
"ezodf", "lxml", "pyexcel-ods", "meshpy", "matplotlib"]

[project.urls]
source = "https://github.com/booya-at/OpenGlider"

[tool.setuptools]
packages = ["openglider",
"openglider.airfoil",
"openglider.glider",
"openglider.glider.cell",
"openglider.glider.in_out",
"openglider.glider.parametric",
"openglider.glider.rib",
"openglider.graphics",
"openglider.jsonify",
"openglider.jsonify.migration",
"openglider.lines",
"openglider.lines.line_types",
"openglider.mesh",
"openglider.plots",
"openglider.plots.glider",
"openglider.plots.sketches",
"openglider.plots.spreadsheets",
"openglider.utils",
"openglider.vector",
"openglider.vector.drawing",
"openglider.vector.spline",
"freecad",
"freecad.glider",
"freecad.glider.tools"]
include-package-data = true

[tool.setuptools.package-data]
"freecad.glider" = ["icons/*", "ui/*", "data/*"]
46 changes: 46 additions & 0 deletions setup_old.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#! /usr/bin/python2
# -*- coding: utf-8; -*-
#
# (c) 2013 booya (http://booya.at)
#
# This file is part of the OpenGlider project.
#
# OpenGlider 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 2 of the License, or
# (at your option) any later version.
#
# OpenGlider 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 OpenGlider. If not, see <http://www.gnu.org/licenses/>.

import os
from setuptools import setup

directory = os.path.dirname(__file__)
version_file = os.path.join(directory, 'openglider', 'version.py')

with open(version_file, 'r') as file:
file_content = file.read()

exec(file_content) # defines __version__

setup(
name='OpenGlider',
version=__version__,
description="tool for glider design",
packages=["openglider", "freecad.glider"],
license='GPL-v3',
# long_description=open('README.md').read(),
install_requires=["svgwrite", "numpy", "scipy",
"ezdxf", "ezodf", "lxml",
"pyexcel-ods", "meshpy"],
author='Booya',
url='www.openglider.org',
download_url=f"https://github.com/booya/OpenGlider/tarball/{__version__}",
include_package_data=True
)

0 comments on commit 7f1b281

Please sign in to comment.