Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
pkgs/sage-bootstrap: Use setuptools, add metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 12, 2022
1 parent 830d804 commit 632678c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 23 deletions.
12 changes: 12 additions & 0 deletions pkgs/sage-bootstrap/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
include VERSION.txt
include pyproject.toml
include test
include tox.ini
# Avoid the "src" symlinks, which would be expanded to copies of the trees.
prune sage_bootstrap/sage_root_source/build/pkgs/*/src
#
global-exclude .tox
global-exclude *~*
global-exclude *.bak
global-exclude __pycache__
global-exclude *.pyc
1 change: 1 addition & 0 deletions pkgs/sage-bootstrap/VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9.7.beta8
3 changes: 3 additions & 0 deletions pkgs/sage-bootstrap/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
20 changes: 13 additions & 7 deletions pkgs/sage-bootstrap/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- conf-unix -*-
[metadata]
name = sagemath-standard
version = 1.0
name = sage-bootstrap
version = file: VERSION.txt
description = System package database and build scripts for the SageMath distribution
long_description = file: README.rst
long_description_content_type = text/x-rst
Expand Down Expand Up @@ -32,11 +32,17 @@ python_requires = >=2.7

scripts =
# User-facing scripts: System package database
bin/sage-spkg-info
bin/sage-get-system-packages
bin/sage-guess-package-system
bin/sage-print-system-package-command
bin/sage-package
sage_bootstrap/sage_root_source/build/bin/sage-spkg-info
sage_bootstrap/sage_root_source/build/bin/sage-get-system-packages
sage_bootstrap/sage_root_source/build/bin/sage-guess-package-system
sage_bootstrap/sage_root_source/build/bin/sage-print-system-package-command
sage_bootstrap/sage_root_source/build/bin/sage-package

packages =
sage_bootstrap
sage_bootstrap.download
sage_bootstrap.compat

[options.package_data]
sage_bootstrap =
sage_root_source/**
18 changes: 2 additions & 16 deletions pkgs/sage-bootstrap/setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
#!/usr/bin/env sage-bootstrap-python

from distutils.core import setup

setup(
name='sage_bootstrap',
description='',
author='Volker Braun',
author_email='vbraun.name@gmail.com',
packages=[
'sage_bootstrap',
'sage_bootstrap.download',
'sage_bootstrap.compat'
],
scripts=['bin/sage-package', 'bin/sage-download-file', 'bin/sage-bootstrap-python'],
version='1.0',
url='https://www.sagemath.org',
)
from setuptools import setup
setup()

0 comments on commit 632678c

Please sign in to comment.