Skip to content

Commit cb6aa0e

Browse files
committed
metadata update + cleanup
1 parent 2010a2a commit cb6aa0e

File tree

3 files changed

+12
-57
lines changed

3 files changed

+12
-57
lines changed

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@type": "SoftwareSourceCode",
1111
"identifier": "forcedalignment2",
1212
"name": "Forced Alignment 2",
13-
"version": "0.2.2",
13+
"version": "0.3.1",
1414
"description": "This webservice provides an output file with word alignments given an NL speech recording and a transcription.",
1515
"license": "https://spdx.org/licenses/AGPL-3.0-only",
1616
"url": "https://github.com/opensource-spraakherkenning-nl/forcedalignment2",

forcedalignment2/forcedalignment2.py

+9-54
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
#A version label of the underlying tool and/or this CLAM wrapper
5353
#(If you can derive this dynamically then that is strongly recommended!)
54-
SYSTEM_VERSION = "0.3.0"
54+
SYSTEM_VERSION = "0.3.1"
5555

5656
#The author(s) of the underlying tool and/or this CLAM wrapper
5757
#(If you can derive this dynamically then that is strongly recommended!)
@@ -75,59 +75,14 @@
7575

7676
# ======== LOCATION ===========
7777

78-
#Either add a section for your host here, or
79-
#specify these variables in an external yaml file
80-
#called $hostname.yaml or config.yaml and use the loadconfig() mechanism.
81-
#Such an external file will be looked for my default and is the recommended way.
82-
83-
host = os.uname()[1]
84-
if host == "yourhostname":
85-
#The root directory for CLAM, all project files, (input & output) and
86-
#pre-installed corpora will be stored here. Set to an absolute path:
87-
ROOT = "/tmp/clam.projects/"
88-
89-
#The URL of the system (If you start clam with the built-in webserver, you can override this with -P)
90-
PORT= 8080
91-
92-
#The hostname of the system. Will be automatically determined if not set. (If you start clam with the built-in webserver, you can override this with -H)
93-
#Users *must* make use of this hostname and no other (even if it points to the same IP) for the web application to work.
94-
HOST = 'yourhostname'
95-
96-
#If the webservice runs in another webserver (e.g. apache, nginx, lighttpd), and it
97-
#doesn't run at the root of the server, you can specify a URL prefix here:
98-
#URLPREFIX = "/myservice/"
99-
100-
#Optionally, you can force the full URL CLAM has to use, rather than rely on any autodetected measures:
101-
#FORCEURL = "http://yourhostname.com"
102-
103-
# ======== AUTHENTICATION & SECURITY ===========
104-
105-
#Users and passwords
106-
107-
#set security realm, a required component for hashing passwords (will default to SYSTEM_ID if not set)
108-
#REALM = SYSTEM_ID
109-
110-
USERS = None #no user authentication/security (this is not recommended for production environments!)
111-
#If you want to enable user-based security, you can define a dictionary
112-
#of users and (hashed) passwords here. The actual authentication will proceed
113-
#as HTTP Digest Authentication. Although being a convenient shortcut,
114-
#using pwhash and plaintext password in this code is not secure!!
115-
116-
#USERS = { user1': '4f8dh8337e2a5a83734b','user2': pwhash('username', REALM, 'secret') }
117-
118-
ADMINS = None #List of usernames that are administrator and can access the administrative web-interface (on URL /admin/)
119-
else:
120-
#This invokes the automatic loader, do not change it;
121-
#it will try to find a file named $system_id.$hostname.yml or just $hostname.yml, where $hostname
122-
#is the auto-detected hostname of this system. Alternatively, it tries a static $system_id.config.yml or just config.yml .
123-
#You can also set an environment variable CONFIGFILE to specify the exact file to load at run-time.
124-
#It will look in several paths including the current working directory and the path this settings script is loaded from.
125-
#Such an external configuration file simply defines variables that will be imported here. If it fails to find
126-
#a configuration file, an exception will be raised.
127-
loadconfig(__name__)
128-
129-
130-
78+
#This invokes the automatic loader, do not change it;
79+
#it will try to find a file named $system_id.$hostname.yml or just $hostname.yml, where $hostname
80+
#is the auto-detected hostname of this system. Alternatively, it tries a static $system_id.config.yml or just config.yml .
81+
#You can also set an environment variable CONFIGFILE to specify the exact file to load at run-time.
82+
#It will look in several paths including the current working directory and the path this settings script is loaded from.
83+
#Such an external configuration file simply defines variables that will be imported here. If it fails to find
84+
#a configuration file, an exception will be raised.
85+
loadconfig(__name__)
13186

13287

13388
#Amount of free memory required prior to starting a new process (in MB!), Free Memory + Cached (without swap!). Set to 0 to disable this check (not recommended)

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def getreadme():
1515

1616
setup(
1717
name = "forcedalignment2",
18-
version = "0.3.0", #make sure SYSTEM_VERSION in your service configuration is set to the same value!
19-
author = "Louis ten Bosch", #adapt this
18+
version = "0.3.1", #make sure SYSTEM_VERSION in your service configuration is set to the same value!
19+
author = "Louis ten Bosch",
2020
description = ("Forced Alignment webservice"),
2121
license = "AGPL-3.0-only",
2222
keywords = "clam webservice rest nlp computational_linguistics rest",

0 commit comments

Comments
 (0)