CI: Setup 3.9 Travis Build
State: closed

- [x] closes https://github.com/pandas-dev/pandas/issues/33395

- In a very similar fashion to @jbrockmendel work for 3.8 - might be useful to have start a 3.9 build so we can start eliminating the issues @TomAugspurger mentioned in https://github.com/pandas-dev/pandas/issues/33395.

This is using currently using `Python 3.9.0a5+`

Currently failing with
```
ImportError while loading conftest '/home/travis/build/pandas-dev/pandas/pandas/conftest.py'.
pandas/conftest.py:1123: in <module>
    ("period", [pd.Period(2013), pd.NaT, pd.Period(2018)]),
pandas/_libs/tslibs/period.pyx:2470: in pandas._libs.tslibs.period.Period.__new__
    freq = Resolution.get_freq(reso)
pandas/_libs/tslibs/resolution.pyx:240: in pandas._libs.tslibs.resolution.Resolution.get_freq
    return cls._reso_freq_map[resostr]
E   AttributeError: type object 'type' has no attribute '_reso_freq_map'
The command "ci/run_tests.sh" exited with 4.
cache.2
store build cache
```

Labels:
name: CI
description: Continuous Integration

Comments:
Test failures currently related to: https://github.com/pandas-dev/pandas/issues/33507
@alimcmaster1 did we determine this needs to wait on an upstream fix?
> @alimcmaster1 did we determine this needs to wait on an upstream fix?

Yes waiting on a fix to the current cython alpha - https://github.com/cython/cython/issues/3544.

(We cant use current cython release due to a different issue - https://github.com/cython/cython/issues/3395)

Will ping on here when ready.
 
@jbrockmendel 
@alimcmaster1 you may need to manually skip the clipboard tests on this build.
/azp run
<samp>
Commenter does not have sufficient privileges for PR 33505 in repo pandas-dev/pandas<br>

</samp>
Azure pipelines don't seem to be triggering
@pandas-dev/pandas-core 3.9 build is ready. (Azure seems to be playing up - all jobs have ran but doesn’t seem to be reporting back to my PR)
all green & raised an issue for later follow ups @jreback 
Resorted to building numpy from source:

* https://anaconda.org/scipy-wheels-nightly/numpy/files has no 3.9 whl available yet.
* previous attempting running pip install --pre -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com numpy`
was just grabbing latest numpy release (logs below) - whereas we probably want to use master/nightly build here.

```
Collecting numpy
  Downloading numpy-1.18.3.zip (5.4 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Building wheels for collected packages: numpy
  Building wheel for numpy (PEP 517): started
  Building wheel for numpy (PEP 517): still running...
  Building wheel for numpy (PEP 517): still running...
  Building wheel for numpy (PEP 517): finished with status 'done'
  Created wheel for numpy: filename=numpy-1.18.3-cp39-cp39-linux_x86_64.whl size=15218460 sha256=a8ece5537cef5c3f6110576f4937c80bfc60d6a3d4a6c6d27353b2e3dc6f677e
  Stored in directory: /home/travis/.cache/pip/wheels/b0/63/be/cd7680896e3713ce13b5b5748563e78e0cfe5ea9c0c20143a1```

@jreback @jbrockmendel any comments here? All green
thanks @alimcmaster1