Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
ligo-segments
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
ligo-segments
Commits
cfe668f4
Commit
cfe668f4
authored
Oct 11, 2018
by
Kipp Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put the version into the .spec automatically
parent
b8d98df0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
.gitignore
.gitignore
+1
-0
MANIFEST.in
MANIFEST.in
+1
-0
ligo-segments.spec.in
ligo-segments.spec.in
+1
-1
setup.py
setup.py
+6
-1
No files found.
.gitignore
View file @
cfe668f4
...
...
@@ -6,6 +6,7 @@ __pycache__
MANIFEST
build
dist
ligo-segments.spec
glue/git_version.py
src/conf/s6_db2/*.sql
/docs/_build
MANIFEST.in
View file @
cfe668f4
...
...
@@ -2,6 +2,7 @@ include LICENSE MANIFEST.in
include src/*.c
include src/*.h
include ligo-segments.spec
include ligo-segments.spec.in
include debian/*
include debian/source/*
include test/*
ligo-segments.spec
→
ligo-segments.spec
.in
View file @
cfe668f4
%global srcname ligo-segments
Name: %{srcname}
Version:
1.0.0
Version:
@VERSION@
Release: 1%{?dist}
Summary: Representations of semi-open intervals
...
...
setup.py
View file @
cfe668f4
...
...
@@ -28,6 +28,11 @@ def find_version(path):
raise
RuntimeError
(
"'%s': unable to find __version__ string"
%
path
)
return
version_match
.
group
(
1
)
version
=
find_version
(
os
.
path
.
join
(
'ligo'
,
'segments.py'
))
# transform ligo-segments.spec.in to ligo-segments.spec
open
(
"ligo-segments.spec"
,
"w"
).
writelines
([
line
.
replace
(
"@VERSION@"
,
version
)
for
line
in
open
(
"ligo-segments.spec.in"
)])
# declare dependencies
setup_requires
=
[
'setuptools'
]
cmdclass
=
{}
...
...
@@ -47,7 +52,7 @@ if {'build_sphinx'}.intersection(sys.argv):
# run setup
setup
(
name
=
'ligo-segments'
,
version
=
find_version
(
os
.
path
.
join
(
'ligo'
,
'segments.py'
))
,
version
=
version
,
description
=
'Representations of semi-open intervals'
,
author
=
'Kipp Cannon'
,
author_email
=
'kipp.cannon@ligo.org'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment